<form method="post" action="/sys/user/google" enctype="multipart/form-data" class="pageForm required-validate"
      onsubmit="return iframeCallback(this, pageRefresh)">
    <input type="hidden" id="id" name="id" th:value="${entity.id}">
    <input type="hidden" id="cmd5" name="cmd5" value="">
    <input type="hidden" id="uid" name="uid" value="">
    <input type="hidden" id="randomData" name="randomData" value="">
    <div class="ibox no-margins no-padding no-borders">
        <div class="ibox-title p-xs ljFixBoxTitle">
            <div class="btn btn-sm btn-primary pull-right" id="btnEditSubmit"><i class="fa fa-paste">提交编辑</i></div>
        </div>
        <div style="height:40px;"></div>
        <div class="ibox-content">
            <div class="row">
                <div class="form-group col-md-4">
                    <label>所属系统(<b class="text-danger">*</b>):</label>
                    <input type="text" class="form-control required" th:value="${sysSystem.systemName}" readonly>
                </div>
                <div class="form-group col-md-4">
                    <label>所属角色(<b class="text-danger">*</b>):</label>
                    <input type="text" class="form-control required" th:value="${sysGroup.groupName}" readonly>
                </div>
                <div class="form-group col-md-4">
                    <label>父资源(<b class="text-danger">*</b>):</label>
                    <input type="text" class="form-control required" th:value="${nick}" readonly>
                </div>
            </div>
            <div class="hr-line-dashed"></div>
            <div class="row">
                <div class="form-group col-md-12">
                    <label>谷歌验证码密钥(<b class="text-danger">*</b>):</label>
                    <input name="keyCode" type="text" class="form-control required" maxlength="32" th:value="${generateSecretKey}" readonly>
                    <label>二维码链接地址(<b class="text-danger">*</b>):</label>
                    <input type="text" class="form-control required" th:value="${getQRBarcodeURL}" readonly>
                    <div id="qrcode" style="text-align: left;" class="m-t m-l"></div>
                </div>
            </div>
        </div>
    </div>
</form>
<script src="/static/papper/js/jquery.qrcode.min.js"></script>
<script type="text/javascript" th:inline="javascript">
    /*<![CDATA[*/
    jQuery(function ($) {
        jQuery('#qrcode').qrcode({
            render: "canvas",
            width: 200,
            height: 200,
            text: '[[${getQRBarcodeURL}]]'
        });

        $(".chosen-select").chosen();
        $('.viewerImgs').viewer({zIndex: 99999, zIndexInline: 99999});
        $("#btnEditSubmit").on("click", function () {
            var values = {};
            modifyVerf(values);
            $("#cmd5").val(values.cmd5);
            $("#uid").val(values.uid);
            $("#randomData").val(values.randomData);
            $(this).closest("form").submit();
        });
    });
    /*]]>*/
</script>